import { $get } from "@src/assets/js/request"
import { strToNum } from "@src/assets/js/tool"

export async function getCaseList () {
  const res = await $get('/api/xd/imessage/myCaseMessage')
  if (res.data instanceof Array) {
    res.data.forEach(li => {
      li.c = strToNum(li.c)
    })
  }
  return res.data
}